package cn.pugle.oj.leetcode;

import cn.pugle.oj.catalog.MathProblem;

/**
 * 错误写法 好傻逼
 *
 * @author tzp
 * @since 2020/11/18
 */
public class LC172 implements MathProblem {
    int zeros1To10 = 2;//3628800
    public int trailingZeroes(int n) {//n!
        int i = n / 10;
        int j = n % 10;
        return 2 * i + (j >= 5 ? 1 : 0);
    }

    public static void main(String[] args) {
        long result = 1;
        for (int i = 21; i <= 30; i++) {
            result *= i;
        }
        System.out.println(result);
        System.out.println(new LC172());
    }
}
